/****************************************************************************
 *
 * Copyright (C) 2003-2008 Los Alamos National Security, LLC
 *                         Packet Analytics Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License Version 2 as
 * published by the Free Software Foundation.  You may not use, modify or
 * distribute this program under any other version of the GNU General
 * Public License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 ****************************************************************************/
package nfse.dataset.netflow;

import java.sql.*;
import nfse.dataset.session.Session;


/*******************************************************************************
 * This class extends the Session class to parse and store NetFlow records.
 * 
 * @author uphoff
 * 
 */
public class NetflowRecord extends Session {

    public static final int NUM_FIELDS_V1 = 12;

    public static final int NUM_FIELDS_V2 = 15;

    public int version = 1;

    /***************************************************************************
     * The router IP that generated this flow record
     */
    public String router = "0.0.0.0";

    public int tos = 0;

    public int numFlows = 1;

    public String tcpFlags = "";

    public long getDstIP() {
        return dstIP;
    }

    public int getDstPort() {
        return dstPort;
    }

    public Timestamp getEndTS() {
        return getStartTS();
    }

    public int getProtocol() {
        return this.proto;
    }

}
